<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">




	<head>

	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

	
	
	
	</head>

	<body>


<jsp:include page="topmenu.jsp"></jsp:include>
<center>
<br><br><br>

Itinerary and Reservation Details <br><br><br>
	Reservation with Ticket No <b><bean:write name="ticketNo" scope="request"/></b> for passenger <b><bean:write name="customer" property="lastName"/> 
	
	<bean:write name="customer" property="firstName"/> </b>    successfully created
	
	
	<br><br><br>
	<table border="1" cellpadding="15">
	
	<tr>
	<th>
	
	Passenger Name
	
	</th>
	
	
	<th>
			AirLine
			</th><th>
			Flight Number</th>
			<th>
			Boarding Point</th>
			
			<th>
			Departure</th>
			
			<logic:equal name="reservation"  property="secondFlightNumber" value="0">
			<th>Destination Point</th>
			</logic:equal>
			
			<logic:notEqual name="reservation"  property="secondFlightNumber" value="0">
			<th>Destination Point</th>
			</logic:notEqual>
			
			<th>Arrival</th>
			
			<logic:notEqual name="reservation"  property="secondFlightNumber" value="0">
			<th>Second Flight</th>
			<th>
			Boarding Point</th>
			<th>Departure</th>
			<th>
			Destination Point</th>
			<th>Arrival</th>
			</logic:notEqual>
			<th>Price</th>
			
			
	
	
	
	
	</tr>
	
	
	<tr>
			
			
			<td>
			
			
			<bean:write name="customer" property="lastName"/> 
	
	<bean:write name="customer" property="firstName"/>
			</td>
			
			<td>
			<bean:write name="reservation" property="airline"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td>
			<bean:write name="reservation" property="firstFlightNumber"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td>
			<bean:write name="reservation" property="boardingPoint"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			
			<td>
			<bean:write name="reservation" property="firstFlightStart"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			
			<logic:equal name="reservation"  property="secondFlightNumber" value="0">
			<td><bean:write name="reservation" property="destination"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			</logic:equal>
			
			<logic:notEqual name="reservation"  property="secondFlightNumber" value="0">
			<td><bean:write name="reservation" property="intermediatePoint"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			</logic:notEqual>
			
			<td><bean:write name="reservation" property="firstFlightEnd"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			
			<logic:notEqual name="reservation"  property="secondFlightNumber" value="0">
			<td><bean:write name="reservation" property="secondFlightNumber"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td>
			<bean:write name="reservation" property="intermediatePoint"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td><bean:write name="reservation" property="secondFlightStart"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td>
			<bean:write name="reservation" property="destination"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td><bean:write name="reservation" property="secondFlightEnd"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			</logic:notEqual>
			<td><bean:write name="reservation" property="totalPrice"/>&nbsp;&nbsp;&nbsp;&nbsp;</td>
			
			
			
			</tr>
	
	
	</table>
	</center>
	
	</body>

